package unilearn.domain;

import java.sql.Timestamp;

/**
 * @author Yin Zhang 5393558
 * @author Ben Morall, 4158768
 * @version 0.1, 27 April 2008, initial creation.
 * @version 0.2, 30 April 2008, Added assessmentID to Constructor, blm
 * @version 0.3, 03 May 2008, Change all the functions to reflect database scheme change
 */
public class Assessment
{
	private long assessmentID = -1;
	private long submissionID = -1;
	private Timestamp assessmentDate = null;
	private String comment = null;
	private int grade = -1;
	private String staffID = null;

	public Assessment()
	{
	}

	public long getAssessmentID()
	{
		return assessmentID;
	}

	public long getSubmissionID()
	{
		return submissionID;
	}

	public Timestamp getAssessmentDate()
	{
		return assessmentDate;
	}

	public String getComment()
	{
		return comment;
	}

	public int getGrade()
	{
		return grade;
	}

	public String getStaffID()
	{
		return staffID;
	}

	public void setSubmissionID(long submissionID)
	{
		this.submissionID = submissionID;
	}

	public void setAssessmentDate(Timestamp assessmentDate)
	{
		this.assessmentDate = assessmentDate;
	}

	public void setComment(String comment)
	{
		this.comment = comment;
	}

	public void setGrade(int grade)
	{
		this.grade = grade;
	}

	public void setStaffID(String staffID)
	{
		this.staffID = staffID;
	}

	public void setAssessmentID(long assessmentID)
	{
		if (this.assessmentID != -1)
			throw new IllegalArgumentException("assessmentID has already been set");
		this.assessmentID = assessmentID;
	}
}
